package com.javatoc.compress.param;

public class zcvInterface {
	public native int ZcvZipInit();

	public native void ZcvZipDeInit();

	public native int ZcvZipCreate();

	public native void ZcvZipRelease(int hndl);

	public native int ZcvZipProcess(int hndl, String inFilename, String outFilename, int vbitrate, int abitrate,
			int keyint, int bframes, float quality, int width, int height, int fps);

	static {
		try {
			System.out.println("加载库信息:" + System.getProperty("java.library.path"));
			System.loadLibrary("compressmove");
			System.out.println("库载完毕");
		} catch (UnsatisfiedLinkError e) {
			System.out.println("Cannot load hello library:\n " + e.toString());
		}
	}

	public static void main(String[] args) {
		
		zcvInterface zcv = new zcvInterface();

		zcv.ZcvZipInit();
		int hndl = zcv.ZcvZipCreate();
		zcv.ZcvZipProcess(hndl, "in.mp4", "out.mp4", -1, -1, 100, 6, 32, -1, -1, -1);
		zcv.ZcvZipRelease(hndl);
		zcv.ZcvZipDeInit();
	}
}